<?php

header("content-type:text/html;charset=utf-8");
				$serverName="localhost";
				$userName="root";
				$password="root";
				$dbName="yx";
				
				$conn =new mysqli($serverName,$userName,$password,$dbName);
				mysqli_set_charset($conn,'utf8');
				
				echo"<br>";
				if(mysqli_connect_error()){
					die("链接失败：".mysqli_connect_error());
				}else{
					echo "成功";
				}
				echo "<br>";
				
				$sql="select * from yxb";
				$result=mysqli_query($conn,$sql);
				
				$s=$_GET['name'];
				
				$sql="DELETE FROM yxb where yxmc='$s'";
				
				if(mysqli_query($conn,$sql )){
					header('Location: index.php');
				}else{
					echo "Error:".$sql."<br>".mysqli_error($conn);
				}
			
				

?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
</html>